﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

/// <summary>
/// Summary description for Enginer
/// </summary>
public class Enginer
{
	public Enginer()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static string reText(string input)
    {
        string output = string.Empty; ;
        string[] result = Regex.Split(input, ",");
        if (result.Length > 1)
        {
            for (int i = 0; i < result.Length - 1; i++)
            {
                output += "<a href=''>" + result[i] + "</a>" + ", ";
            }
            output = output.TrimEnd();
            output = output.Substring(0, output.Length - 1);
        }
        else
        {
            output = "<a href=''>" + input + "</a>";
        }
        return output;
    }
}